package asia.doing.mapper;

import asia.doing.entity.ArticleCategory;
import asia.doing.entity.Category;

import java.util.List;

public interface CategoryMapper {
    List<Category> selectAll(Category category);

    List<ArticleCategory> selectByArtOrCaId(ArticleCategory articleCategory);

    Integer insert(Category category);

    Integer updateById(Category category);

    Integer deleteById(Integer id);

    Integer deleteByArtId(Integer a_id);

    Integer deleteByCatId(Integer c_id);

    Integer insertByArtId(Integer a_id, Integer c_id);

}
